/**
 * Created by Administrator on 2017/4/25 0025.
 */

function navclick(parse) {
    var obj = {
        hasclass: null,
        active: null,
        dom: null
    };
    $.extend(obj, parse);
    var has = obj.hasclass;
    var active = obj.active;
    var dom = obj.dom;
    if (!dom.hasClass(has)) {
        dom.addClass(active);
        dom.siblings().removeClass(active);
        if (dom.find(".bar")) {
            dom.find(".bar").addClass("bar-active");
            dom.siblings().find(".bar").removeClass("bar-active")
        }
    }
}
